<?php
require "connect.php";
//获取修改的新闻
$id = $_POST['id'];
$name = $_POST['name'];
$gender = $_POST['gender'];
$age = $_POST['age'];
$phone = $_POST['phone'];
$address = $_POST['address'];
$membernum = $_POST['membernum'];
$birth = $_POST['birth'];
$introduction = $_POST['introduction'];
//更新数据
$link->query("UPDATE members SET name='$name',gender='$gender',age='$age',phone='$phone',address='$address',membernum='$membernum',birth='$birth',introduction='$introduction' WHERE id=$id"); 
//更新完成跳转主页
header("Location:../index.php");  

